package demo2;

public class Employee {
    private int id;
    private double money;
    private String name;

    public Employee() {
    }

    public Employee(int id, double money, String name) {
        this.id = id;
        this.money = money;
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public void work(){
        System.out.println("工作中");
    }
    public void eat(){
        System.out.println("员工吃饭中");
    }
}
